package com.mly.dao.imp;

import com.mly.dao.TypeDao;
import com.mly.entity.Type;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;
import orm.base.Ex.BaseDaoEx;

import java.util.List;
import java.util.Map;

/**
 * Created by ashin on 2018/3/27.
 */
@Repository
@Scope("prototype")
public class TypeDaoImp extends BaseDaoEx implements TypeDao {

    @Override
    protected void init() {
        super.init(this);
    }

    @Override
    public List<Map> queryType(Map map) throws Exception {
        return this.query("queryType", map);
    }
}
